<template>
	<web-view :src="webUrl"></web-view>
</template>

<script>
export default {
	onLoad(obj) {
		if (obj && obj.type == 'agentStaff') {
			this.webUrl = `https://app.aptenon.com/crm/bindPhoneMP.html?regType=agentStaff&mpOpenId=${this.$store.state.user.userInfo.openId}`;
		} else {
			this.webUrl = `https://app.aptenon.com/crm/bindPhoneMP.html?mpOpenId=${this.$store.state.user.userInfo.openId}`;
		}
	},
	data() {
		return {
			webUrl: ''
		};
	}
};
</script>

<style></style>
